    <div class="navbar navbar-default navbar-fixed-top" role="navigation" id="header">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand no-padding" href="<?php echo site_url();?>"><img src="<?php echo site_url('assets/images').'/logo.png';?>" /></a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><span id="slogan">打球吧 -- 在线约球，以球会友</span></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li class="active"><a href="<?php echo site_url('activity/add/');?>">发起活动</a></li>
            <?php if($this->session->userdata('uid')) :?>
            <li><a href="<?php echo site_url('user').'/?uid='.$this->session->userdata('uid');?>">我的</a></li>
            <li><a href="<?php echo site_url('login/logout');?>">退出</a></li>
            <?php else :?>
            <li><a href="<?php echo site_url('login');?>">登录</a></li>
            <li><a href="<?php echo site_url('register');?>">注册</a></li>
            <?php endif;?>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>
